package com.netwit.service.impl;

import java.util.List;
import java.util.Map;

import com.netwit.common.config.DBSource;
import com.netwit.mapper.UserMapper;
import com.netwit.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    
    @DBSource("questionbank")
    public List<Map<String, Object>> list() {
        return userMapper.list();
    }
}